//
//  AppTvPlhoderView.m
//  classicFilms
//
//  Created by 刘继丹 on 17/4/25.
//  Copyright © 2017年 Stefan Arn. All rights reserved.
//

#import "AppTvPlhoderView.h"

@interface AppTvPlhoderView()

@property(nonatomic, strong) UILabel *mTitleLabel;

@property(nonatomic, strong) UILabel *mSubTitleLabel;

@end

@implementation AppTvPlhoderView

-(instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        
        [self addSubview:self.mTitleLabel];
        
        [self addSubview:self.mSubTitleLabel];
        
    }
    return self;
}

-(void)layoutSubviews{
    [super layoutSubviews];
    
    _mTitleLabel.frame = CGRectMake(0, 450, self.frame.size.width, 50);
    
    _mSubTitleLabel.frame = CGRectMake(0, 550, self.frame.size.width, 50);
    
}

-(UILabel *)mTitleLabel{
    if (!_mTitleLabel) {
        _mTitleLabel = [[UILabel alloc]init];
        _mTitleLabel.text = @"暂未上线";
        _mTitleLabel.textColor = [UIColor whiteColor];
        _mTitleLabel.font = [UIFont systemFontOfSize:50];
        _mTitleLabel.textAlignment = NSTextAlignmentCenter;
    }
    return _mTitleLabel;
}

-(UILabel *)mSubTitleLabel{
    if (!_mSubTitleLabel) {
        _mSubTitleLabel = [[UILabel alloc]init];
        _mSubTitleLabel.text = @"该模块正在筹备中，5月1日正式上线";
        _mSubTitleLabel.textColor = [UIColor whiteColor];
        _mSubTitleLabel.font = [UIFont systemFontOfSize:35];
        _mSubTitleLabel.textAlignment = NSTextAlignmentCenter;
        _mSubTitleLabel.numberOfLines = 0;
        _mSubTitleLabel.lineBreakMode = NSLineBreakByCharWrapping;
    }
    return _mSubTitleLabel;
}

@end
